
<body class="u-bg1">

<div class="m-odr-crt">
    <input type="hidden" class="order_id" placeholder="请填写信息" value="<?php echo $list['order_id'];?>" >
	<ul class="f-cb">
		<li>订单编号</li><li><?php echo $list['order_char_id'];?></li>
		<li>支付金额</li><li>￥<?php echo $list['order_cost'];?></li>
	</ul>
    <?php if(isset($list['express']['name'])&&$list['express']['name']){?>
        <ul class="f-cb">
            <li>提货人姓名</li><li><?php echo $list['express']['name'];?></li>
            <li>提货人手机</li><li><?php echo $list['express']['mobile'];?></li>
        </ul>
        <input type="hidden" class="expressname" placeholder="请填写信息" value="<?php echo $list['express']['name'];?>" >
    <?php }else{?>
        <ul class="f-cb">
            <li>提货人姓名</li><li><input type="text" class="selfname" placeholder="请填写信息" style="width: 200px"></li>
            <li>提货人手机</li><li><input type="text" class="selfmoile" placeholder="请填写信息" style="width: 200px"></li>
        </ul>
    <?php }?>
	<p>在订单确认成功后，请您在收到通知短信的三天内在指定门 店内支付提货</p>

	<a class="u-btn" herf="javascript:;"><span>确定</span></a>

    <script>
        $('.u-btn').tap(function(){
            var _expressname=$('.expressname').val();
            if(!_expressname){
                var _order_id=$('.order_id').val();
                var _name=$('.selfname').val();
                var _mobile=$('.selfmoile').val();
                if(!_name || !_mobile){
                    msgPopup('请填写姓名或手机号');
                    return false;
                }
                var reg = /^0?1[3|4|5|8][0-9]\d{8}$/;
                if (!reg.test(_mobile)) {
                    msgPopup("请填写正确的手机号码");
                    return;
                }
                $.post('',{order_id:_order_id,name:_name,mobile:_mobile},function(data){
                    console.log(data);
                   if(data==1){
                       window.location.href='/web/order/ordersuccess';
                   }
                },'json')
            }else{
                window.location.href='/web/order/ordersuccess';
            }
        });
    </script>


</div>


